<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>FRQBluetoothManagerDelegate Protocol Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">FRQBluetoothKit </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">富芮坤微电子</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	

	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/onBLEManagerBeginUpdateOTA:">- onBLEManagerBeginUpdateOTA:</option>
		
		<option value="//api/name/onBLEManagerCancelScan:">- onBLEManagerCancelScan:</option>
		
		<option value="//api/name/onBLEManagerConnect:peripheral:error:">- onBLEManagerConnect:peripheral:error:</option>
		
		<option value="//api/name/onBLEManagerDisconnect:peripheral:error:">- onBLEManagerDisconnect:peripheral:error:</option>
		
		<option value="//api/name/onBLEManagerDiscoverPeripheral:peripheral:advertisement:RSSI:">- onBLEManagerDiscoverPeripheral:peripheral:advertisement:RSSI:</option>
		
		<option value="//api/name/onBLEManagerStateChange:">- onBLEManagerStateChange:</option>
		
		<option value="//api/name/onBLEManagerUpdateOTA:progress:">- onBLEManagerUpdateOTA:progress:</option>
		
		<option value="//api/name/onBLEManagerUpdateOTAFinish:error:">- onBLEManagerUpdateOTAFinish:error:</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">FRQBluetoothManagerDelegate Protocol Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Conforms to</th>
	<td>NSObject</td>
</tr><tr>
	<th>Declared in</th>
	<td>FRQBluetoothManager.h</td>
</tr>
						</tbody></table></div>
					

                    

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/onBLEManagerDiscoverPeripheral:peripheral:advertisement:RSSI:" title="onBLEManagerDiscoverPeripheral:peripheral:advertisement:RSSI:"></a>
	<h3 class="method-title"><code><a href="#//api/name/onBLEManagerDiscoverPeripheral:peripheral:advertisement:RSSI:">&ndash;&nbsp;onBLEManagerDiscoverPeripheral:peripheral:advertisement:RSSI:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>当发现周围蓝牙外设时候回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)onBLEManagerDiscoverPeripheral:(id&lt;FRBleAbility&gt;)<em>ability</em> peripheral:(CBPeripheral *)<em>peripheral</em> advertisement:(NSDictionary *)<em>advertisementData</em> RSSI:(NSNumber *)<em>RSSI</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>ability</code></th>
						<td><p>当前管理对象</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>peripheral</code></th>
						<td><p>外设</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>advertisementData</code></th>
						<td><p>设备相关信息数据</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>RSSI</code></th>
						<td><p>dBm</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">FRQBluetoothManager.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/onBLEManagerStateChange:" title="onBLEManagerStateChange:"></a>
	<h3 class="method-title"><code><a href="#//api/name/onBLEManagerStateChange:">&ndash;&nbsp;onBLEManagerStateChange:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>当前设备的状态发生变更</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)onBLEManagerStateChange:(id&lt;FRBleAbility&gt;)<em>ability</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>ability</code></th>
						<td><p>当前管理对象</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">FRQBluetoothManager.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/onBLEManagerConnect:peripheral:error:" title="onBLEManagerConnect:peripheral:error:"></a>
	<h3 class="method-title"><code><a href="#//api/name/onBLEManagerConnect:peripheral:error:">&ndash;&nbsp;onBLEManagerConnect:peripheral:error:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>蓝牙设备连接上时回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)onBLEManagerConnect:(id&lt;FRBleAbility&gt;)<em>ability</em> peripheral:(CBPeripheral *)<em>peripheral</em> error:(NSError *)<em>error</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>ability</code></th>
						<td><p>当前管理对象</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>peripheral</code></th>
						<td><p>蓝牙外设</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>error</code></th>
						<td><p>如果为空表示蓝牙设备连接成功，否则连接蓝牙设备失败，可以查看详细信息 errCode @see <a href="../Constants/FRQErrorCode.html">FRQErrorCode</a></p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">FRQBluetoothManager.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/onBLEManagerDisconnect:peripheral:error:" title="onBLEManagerDisconnect:peripheral:error:"></a>
	<h3 class="method-title"><code><a href="#//api/name/onBLEManagerDisconnect:peripheral:error:">&ndash;&nbsp;onBLEManagerDisconnect:peripheral:error:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设备断开连接时回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)onBLEManagerDisconnect:(id&lt;FRBleAbility&gt;)<em>ability</em> peripheral:(CBPeripheral *)<em>peripheral</em> error:(NSError *)<em>error</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>ability</code></th>
						<td><p>当前管理对象</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>peripheral</code></th>
						<td><p>蓝牙外设</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>error</code></th>
						<td><p>如果为空表示蓝牙连接正常断开，否则为异常断开，可以查看详细信息 errCode @see <a href="../Constants/FRQErrorCode.html">FRQErrorCode</a></p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">FRQBluetoothManager.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/onBLEManagerCancelScan:" title="onBLEManagerCancelScan:"></a>
	<h3 class="method-title"><code><a href="#//api/name/onBLEManagerCancelScan:">&ndash;&nbsp;onBLEManagerCancelScan:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>取消设备扫描操作</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)onBLEManagerCancelScan:(id&lt;FRBleAbility&gt;)<em>ability</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>ability</code></th>
						<td><p>当前管理对象</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">FRQBluetoothManager.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/onBLEManagerBeginUpdateOTA:" title="onBLEManagerBeginUpdateOTA:"></a>
	<h3 class="method-title"><code><a href="#//api/name/onBLEManagerBeginUpdateOTA:">&ndash;&nbsp;onBLEManagerBeginUpdateOTA:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设备的OTA开始升级时调用</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)onBLEManagerBeginUpdateOTA:(id&lt;FRBleAbility&gt;)<em>ability</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>ability</code></th>
						<td><p>当前管理对象</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">FRQBluetoothManager.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/onBLEManagerUpdateOTA:progress:" title="onBLEManagerUpdateOTA:progress:"></a>
	<h3 class="method-title"><code><a href="#//api/name/onBLEManagerUpdateOTA:progress:">&ndash;&nbsp;onBLEManagerUpdateOTA:progress:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设备OTA升级过程中调用</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)onBLEManagerUpdateOTA:(id&lt;FRBleAbility&gt;)<em>ability</em> progress:(double)<em>aProgress</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>ability</code></th>
						<td><p>当前管理对象</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>aProgress</code></th>
						<td><p>当前升级进度，0-100</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">FRQBluetoothManager.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/onBLEManagerUpdateOTAFinish:error:" title="onBLEManagerUpdateOTAFinish:error:"></a>
	<h3 class="method-title"><code><a href="#//api/name/onBLEManagerUpdateOTAFinish:error:">&ndash;&nbsp;onBLEManagerUpdateOTAFinish:error:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设备OTA升级完成后调用</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)onBLEManagerUpdateOTAFinish:(id&lt;FRBleAbility&gt;)<em>ability</em> error:(NSError *)<em>error</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>ability</code></th>
						<td><p>当前管理对象</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>error</code></th>
						<td><p>如果为空则升级正常，否则失败可以查看详细错误信息，errCode @see <a href="../Constants/FRQErrorCode.html">FRQErrorCode</a></p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">FRQBluetoothManager.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2021 富芮坤微电子. All rights reserved. Updated: 2021-02-24</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>